package com.zhouliang.error;

public class DouyinException extends Exception{
    private Integer code;
    public DouyinException(StatusCode statusCode){
        super(statusCode.getMsg());
        this.code = statusCode.getCode();
    }

    @Override
    public String toString() {
        return "DouyinException{" +
                "code=" + code + ", message" + this.getMessage()+
                '}';
    }
}
